﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DwarfInterpreter
{
    class SelectToken : Token
    {
        private int index;

        public int GetIndex()
        {
            return index;
        }

        public SelectToken(string number)
        {
            index = Convert.ToInt32(number);
        }

        public static bool IsSelectCommand(string[] str)
        {            
            return (str[0].CompareTo("select") == 0) && StringUtils.IsNumber(str[1]);
        }

    }
}
